package cn.thoughtworks.school.usercenter.repositories;


import cn.thoughtworks.school.usercenter.entities.EmailReset;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface EmailResetRepository extends JpaRepository<EmailReset, Long> {
    List<EmailReset> getEmailResetByUserId(Long userId);
    EmailReset findByUuid(String uuId);

    List<EmailReset> getByUserId(Long userId);

    List<EmailReset> getEmailResetByUserIdOrderByCreateTimeDesc(Long userId);
}
